package com.yunlong.softpark.form;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
/**
 * @Author: Cui
 * @Date: 2020/7/31
 * @Description:
 */
@Data
public class UpdatePhoneForm {

    @NotBlank(message = "手机号不能为空")
    @Pattern(message = "请输入正确的手机号", regexp = "^1[3|4|5|7|8][0-9]\\d{8,11}$")
    private String newPhone;

    @NotBlank(message = "验证码不能为空")
    private String code;
}
